export const postCompositeStateTranslator = (key: string) => {
  const state: any = {
    APPROVED: 'auditPassed',
    DENIED: 'auditFailed',
    PENDING: 'auditPending',
    CLOSE: 'auditClosed',
    SHOW: 'visible',
    HIDE: 'hidden',
    LOCK: 'locked',
  };
  return state[key];
};

export const postSortStateTranslator = (key: string) => {
  const state: any = {
    GLOBAL: 'globalTop',
    CURRENT: 'top',
    RECOMMEND: 'recommended',
    POPULAR: 'popular',
    DEFAULT: 'default',
  };
  return state[key];
};

export const postContentTypeTranslator = (key: string) => {
  const state: any = {
    DEFAULT: 'defaultValue',
    LINK: 'linkValue',
    NONE: 'emptyContent',
  };
  return state[key];
};

export const postOtherStateTranslator = (key: string) => {
  const state: any = {
    DEFAULT: 'defaultValue',
    ALLOW: 'allowList',
    BLOCK: 'blackList',
    CLOSE_COMMENT: 'disableComments',
    CLOSE_REPLY: 'disableReplies',
    CLOSE_COMMENT_REPLY: 'disableCommentReplies',
    LOGIN_SEE: 'loginRequired',
  };
  return state[key];
};
